package com.rogereis.sisvendas.view;

import java.util.List;

import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;

import br.gov.frameworkdemoiselle.stereotype.ViewController;
import br.gov.frameworkdemoiselle.template.AbstractListPageBean;

import com.rogereis.sisvendas.business.ClienteBC;
import com.rogereis.sisvendas.domain.Cliente;

@ViewController
@RequestScoped
public class ClienteListMB extends AbstractListPageBean<Cliente, Integer>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Inject
	private ClienteBC clienteBC;
	

	@Override
	protected List<Cliente> handleResultList() {
		return clienteBC.findAll();
	}

}
